package com.haiwei.poi.word.loop;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.poi.xwpf.usermodel.XWPFTable;
import org.apache.poi.xwpf.usermodel.XWPFTableRow;

import java.util.ArrayList;
import java.util.List;

/**
 * 循环栈.
 *
 * @date: 2022-06-26
 * @version: 1.0
 * @author: karry@haiwei.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HaiweiLoopStack {
    
    // 开始标签
    private HaiweiLoopSign loopSign;
    
    // 表格对象
    private XWPFTable table;
    
    // loop 标签其实位置
    private int signStartIndex;
    
    // loop 标签结束位置
    private int signEndIndex;
    
    // 模板row
    private XWPFTableRow templateRow;
    
    private List<XWPFTableRow> loopTemplateRows = new ArrayList<>();
    
}
